function doCancel(){
  return true;
}

function doOnLoad(){
  var retVals = window.arguments[0];
  document.getElementById('txtName').value = retVals.attrName;
  document.getElementById('txtValue').value = retVals.attrValue;
}

function doOK(){
	var stringBundle = document.getElementById("sbLasuli");
  var attrName = document.getElementById('txtName').value;
  var attrValue = document.getElementById('txtValue').value;
  if('undefined' == typeof attrName || attrName == ""){
    alert(stringBundle.getString("attributeDialog.error.attrnameisnull"));
    return false;
  }
  var retVals = window.arguments[0];
  retVals.attrName  = attrName;
  retVals.attrValue  = attrValue;
  return true;
}